/*
 * Copyright (c) 2018. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
 * Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
 * Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
 * Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagittis ligula eget metus.
 * Vestibulum commodo. Ut rhoncus gravida arcu.
 */

package com.j4dream.property;



import org.junit.runner.RunWith;
import org.mybatis.spring.boot.test.autoconfigure.MybatisTest;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * Created by root on 8/21/17.
 */

@RunWith(SpringRunner.class)
@MybatisTest
@ActiveProfiles("test")
public abstract class BaseDaoTestCase {
    // 在操作数据时开启了事务，数据被放在iBATIS的一级缓存中，而操作之后没有提交事务。在测试的方法添加annotation: @Rollback(false) 即可。
    // @Rollback(false)
}
